package org.coderk.mybatis.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.coderk.mybatis.model.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: TanJingyu
 * @create: 2021-04-05 10:19
 **/
@Configuration(proxyBeanMethods = false)
public class DemoConfiguration {


    @ConditionalOnProperty(prefix = "codert.role", name = "enable", havingValue = "false",
            matchIfMissing = false)
    @Bean
    public Role role() {
        return new Role();
    }
}
